<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../build/react/umd/react.development.js"></script>
    <script src="../build/react-dom/umd/react-dom.development.js"></script>
    <script src="../build/babel/babel.min.js"></script>
    <style>
        .fred{
            color: red;
        }
        .fgreen{
            color: green;
        }
    </style>
</head>

<body>
    <div id="root"></div>
    <script type="text/babel">
        var nId = "n2";
        ReactDOM.render(
            <div>
                <div className="fred" id="n1">id is n1</div>
                <div className="fgreen"  id="{nId}">id is {"{nId}"}</div>
                <div style={{color:"blue"}} id={nId}>id is n2</div>
            </div>,
            document.getElementById("root"));
    </script>
</body>

</html>